package com.hu.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.hu.bean.Test;
import com.hu.dao.TestDaoMapper;

@Service("testService")
@Transactional
public class TestServiceImpl implements TestService {
	@Autowired
	private TestDaoMapper testDaoMapper;

	public List<Test> showTest() {

		return testDaoMapper.showTest();
	}
	
	
	public void insert(Test test) {
		testDaoMapper.insert(test);
	}

	public void delete(String id) {

		testDaoMapper.delete(id);
	}

	public Test findOne(String id) {
		return testDaoMapper.findOne(id);
	}

	public void update(Test test) {
		testDaoMapper.update(test);
	}

}
